package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class WifiParam implements Parcelable {

    private float x;
    private float y;
    private float power;

    public WifiParam(){

    }

    public WifiParam(float x, float y, float power){
        this.x = x;
        this.y = y;
        this.power = power;
    }

    protected WifiParam(Parcel in) {
        x = in.readFloat();
        y = in.readFloat();
        power = in.readFloat();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(x);
        dest.writeFloat(y);
        dest.writeFloat(power);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WifiParam> CREATOR = new Creator<WifiParam>() {
        @Override
        public WifiParam createFromParcel(Parcel in) {
            return new WifiParam(in);
        }

        @Override
        public WifiParam[] newArray(int size) {
            return new WifiParam[size];
        }
    };

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getPower() {
        return power;
    }

    public void setPower(float power) {
        this.power = power;
    }

    @Override
    public String toString() {
        return "WifiParam{" +
                "x=" + x +
                ", y=" + y +
                ", power=" + power +
                '}';
    }
}
